package com.ruoyi.exam.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.exam.domain.ExamQuestionFavorite;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.sql.Date;
import java.util.List;

/**
 * 我的收藏题目Vo对象
 *
 * @author Tellsea
 * @date 2025-05-30
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class MyFavoriteQuestionVo extends ExamQuestionFavorite {

    /**
     * 题目title
     */
    private String questionTitle;

    /**
     * 题目内容
     */
    private String questionContent;

    /**
     * 题目类型
     */
    private String questionType;

    /**
     * 题目难度
     */
    private String questionLevel;

    /**
     * 题目分数
     */
    private Integer questionScore;

    /**
     * 题目解析
     */
    private String questionAnalyze;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    /**
     * 题目选项列表
     */
    private List<ExamQuestionOptionVo> options;

    /**
     * 题目答案列表
     */
    private List<ExamQuestionAnswerVo> answers;

    /**
     * 题库名称
     */
    private String questionBankName;

    /**
     * 是否已答题
     */
    private Boolean hasAnswered;

    /**
     * 是否答对
     */
    private Boolean isCorrect;
} 